/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2023-03-22
 * Time: 9:03
 */
public class ThreadDemo4 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true) {
                    System.out.println("hello t");
                }
            }
        });
        thread.start();
        while (true) {
            System.out.println("hello main");
        }
    }
}
